home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Wayzata's Best of Shareware PC/Windows 2
/
Wayzata's Best of Shareware 2.0 (Windows) (Wayzata Technology)(7112)(1994).bin
/
pc
/
dos
/
math
/
mrcry209
/
deriv.eka
< prev
next >
Wrap
Text File
|
1992-11-03
|
270b
|
12 lines
; Demo of symbolic derivatives.
; x is deliberately left undefined, so Mercury will not be able to simplify
; to a real value.
f(x) := EXP(x SIN(x))
a = deriv(f(x),x)
; numerical derivatives
b = deriv(f(y),y)
c = (f(y + eps) - f(y)) / eps
eps = 1e-10
y = 1